    function btnGo_onClick() {   
            // Connect to WMI  
            var finalmacid=null;
            if(navigator.appName=="Microsoft Internet Explorer"){ 
              
              try{
	              	var locator = new ActiveXObject("WbemScripting.SWbemLocator");   
		            var service = locator.ConnectServer(".");   
		               
		            var properties = service.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration");   
		            var e = new Enumerator (properties);   
		            for (;!e.atEnd();e.moveNext ())   
		            {   
		                var p = e.item ();   
		                finalmacid = finalmacid+'~'+ p.MACAddress;
		            }   
		            document.getElementById("macId").value=finalmacid;
	            }catch(err){
	            	document.getElementById("macId").value=finalmacid;
	            }
	            
            }else{
            	document.getElementById("macId").value=finalmacid;
            	
            }
        }     